﻿using System.Windows.Automation;

namespace ProdControls.Verification
{
    internal sealed class EventRegistrationMessage
    {
        internal AutomationEvent EventType;
        internal AutomationProperty Property;
        internal BaseProdControl Source;

        /// <summary>
        ///   Initializes a new instance of the <see cref="EventRegistrationMessage" /> class.
        /// </summary>
        /// <param name="source"> The source control. </param>
        /// <param name="property"> The property to monitor. </param>
        internal EventRegistrationMessage(BaseProdControl source, AutomationProperty property)
        {
            Source = source;
            Property = property;
        }

        /// <summary>
        ///   Initializes a new instance of the <see cref="EventRegistrationMessage" /> class.
        /// </summary>
        /// <param name="source"> The source control. </param>
        /// <param name="eventType"> Type of the event. </param>
        internal EventRegistrationMessage(BaseProdControl source, AutomationEvent eventType)
        {
            Source = source;
            EventType = eventType;
        }
    }
}